package cn.softwin.domain;

import java.util.List;

public class PageBean<T> {
	private int totalcount;//总行数
	private int totalpage;//总页码
	private int currentpage;//当前页码
	private int rows;//每页行数
	private List<T> list;//每页数据集合,T是自定义泛型
	
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	@Override
	public String toString() {
		return "PageBean [totalcount=" + totalcount + ", totalpage=" + totalpage + ", currentpage=" + currentpage
				+ ", rows=" + rows + ", list=" + list + "]";
	}
	public int getTotalcount() {
		return totalcount;
	}
	public void setTotalcount(int totalcount) {
		this.totalcount = totalcount;
	}
	public int getTotalpage() {
		return totalpage;
	}
	public void setTotalpage(int totalpage) {
		this.totalpage = totalpage;
	}
	public int getCurrentpage() {
		return currentpage;
	}
	public void setCurrentpage(int currentpage) {
		this.currentpage = currentpage;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}

	
}
